//index.js
Page({
  data: {
    // 轮播图数组
    swiperList:[],
    province:'定位',
  },

  onLoad: function (options) {
    let that = this
    const db = wx.cloud.database()
    db.collection('house_information').limit(4).get({
      success: function (res) {
        that.setData({
          swiperList: res.data
        })
      }
    })
  },
  onShow:function() {
    console.log(this.data.province)
  }

})
